package com.woniu.backparking.jwtUtil;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author HashSong
 * @ClassName: JWTToken
 * @Description:
 * @date 2021/4/29 20:49
 * @Version 1.0
 */
public class JWTToken implements AuthenticationToken {
    public JWTToken(String token){
        this.token=token;
    }
    private String token;
    public String getToken() {
        return token;
    }
    public void setToken(String token) {
        this.token = token;
    }
    @Override
    public Object getPrincipal() {
        return token;
    }
    @Override
    public Object getCredentials() {
        return token;
    }
}
